﻿// -----------------------------------------------------------------------
// <copyright file="StronglyTypedProducerBase.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Dhgms.TplHelper.Model.StronglyTypedProducer
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public abstract class StronglyTypedProducerBase<TStronglyTypedDataType> : IStronglyTypedProducer<TStronglyTypedDataType>
    {
        /// <summary>Produces and Consumes the data</summary>
        /// <param name="consumingAction">The consuming action.</param>
        /// <returns>Number of records processed.</returns>
        public abstract long ProduceAndConsume(Func<TStronglyTypedDataType, long> consumingAction);
    }
}
